package cn.tedu.spring.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * 1.保证优先加载
 *      @Configuration注解：该类为配置类，工程会优先加载
 * 2.保证能够自动扫描
 *      @ComponentScan注解：自动扫描注解
 *      会扫描该包及其子孙包的所有类将所有添加@Component,@Service,@Repository,@Controller注解的类,自动创建Bean对象;
 */

@Configuration
@ComponentScan("cn.tedu.spring")
public class SpringConfig {
}
